package com.cykj.pos.service;

import com.cykj.common.core.domain.AjaxResult;
import com.cykj.pos.domain.AllocationRelation;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;

/**
 * 划拨-机具层级关系Service接口
 *
 * @author weijianbo
 * @date 2025-01-20
 */
public interface IAllocationRelationService extends IService<AllocationRelation> {

    /**
     * 查询列表
     */
    List<AllocationRelation> queryList(AllocationRelation allocationRelation);

    AllocationRelation selectInfoBySnAndMerchId(String sn, Long merchId);

    AjaxResult checkMySnCount(AllocationRelation allocationRelation);

    AjaxResult myPolicy(String paramJson);

    AjaxResult backMySettlementPolicy(String paramJson);

    AjaxResult backMyCashbackPolicy(String paramJson);

    AjaxResult backMyWithdrawalPolicy();

    AjaxResult backMyWithdrawalProfitPolicy(String paramJson);

    AllocationRelation getInfoBySnAndMerchId(String posCode, Long merchId);

    Double getRelationByMaxLevelAndSn(String posCode);

    void deleteGreaterThanMyLevel(String sn, Long level);

    void deleteBySn(String sn);

    AllocationRelation selectGreaterThanMyLevel(String sn, Long level);

    AjaxResult updateFlow();

    AjaxResult executeHandleEdit(AllocationRelation allocationRelation);
}
